﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //Thread thread = Thread.CurrentThread;
            ////Program.ChildThreadFun();

            //ThreadStart threadStart = new ThreadStart(ChildThreadFun);
            //Thread childThread = new Thread(threadStart);

            //childThread.Start();

            //Thread.Sleep(1000);
            //childThread.Abort();

            string str1 = "apple";
            string str2 = "Banana";
            Console.WriteLine(str1.CompareTo(str2));
            Console.WriteLine(CultureInfo.CurrentCulture);

            DateTime dt = System.DateTime.Now;
            Console.WriteLine("{0:HH:mm:ss}",dt);

            StringBuilder stringBuilder = new StringBuilder("banana");

            Console.WriteLine(str1.Insert(1,"123"));
            Console.WriteLine(stringBuilder.Insert(1,123));

        }

        public static void ChildThreadFun()
        {
            while(true)
            {
                Console.WriteLine("子线程");
            }

        }
    }
}
